const http = require('http')
const route = require('./route')


const server = http.createServer()

server.on('request', (req, res) => {
    let { url } = req
    route(url,res)
    
})
server.listen(4000, () => {
    console.log("listening.")
})